import Mock from 'mockjs'
const myStudent = Mock.mock({
    'data|50':[
        {
            name: '张子枫',
            'studentid|+1':1133,
            'subject|1':['物理','化学','生物','语文','数学','英语'],
            grade: '初三',
            phone: '15050501414',
            school: '内蒙古呼和浩特市第三十八中学',
            teacher: '吴彦祖',
            buyTime: '2020-11-11'
        },
    ]
})

Mock.mock('/getmystudent', 'post', (config) => {
    // console.log(config.body);
    // console.log('有人请求了这个接口')
    return myStudent
})